﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="findscore.aspx.cs" Inherits="CMS.findscore" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
<link type="text/css" rel="stylesheet" href="css/basic.css"/>
<link type="text/css" rel="stylesheet" href="css/findscore.css"/>
<script>
function show() {
    var showTh = document.getElementById("showTh");
}
</script>
</head>
<body>
    <form id="form1" runat="server">
       <div id="main">
            <div id="top">
                欢迎您：<span id="stu_no" class="span1" runat="server"></span>
                <span id="stu_name" class="span2" runat="server"></span>同学
            </div>
        
            <div id="left">
               <div class="header">

               </div>
           
               <div class="body">
                    <a id="A1" href="index.aspx" runat="server">班级公告</a>
                    <a id="A2" href="findscore.aspx" runat="server">成绩查询</a> 
                    <a id="A3" href="chengyuan.aspx" runat="server">班级成员</a>
                    <a id="A4" href="#" runat="server">班级论坛</a>
                    <a id="A5" href="happy.aspx" runat="server">开心一笑</a>
                    <a href="log.aspx">安全退出</a>
               </div>
            </div>

            <div id="right">
            <p id="index">当前位置 -- <span id="position">班级公告</span></p>     
            <span id="select">
                <asp:Label ID="lblgrade" runat="server" Text="学年："></asp:Label>
                <asp:DropDownList ID="ddlgrade" runat="server" Height="26px" Width="60px">
                <asp:ListItem Selected="True">1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                <asp:ListItem>3</asp:ListItem>
                </asp:DropDownList>
                <asp:Label ID="lblterm" runat="server" Text="学期："></asp:Label>
                <asp:DropDownList ID="ddlterm" runat="server" Height="26px" Width="60px">
                <asp:ListItem Selected="True">1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                </asp:DropDownList>      
                <asp:Button ID="score_query" runat="server" Text="查询" Height="26px" OnClick="score_query_Click"  OnClientClick="show()"/>
            </span>

            <div id="content">
                <table> 
                   <tr runat="server" visible="false" id="showTh"><th>课程名</th><th>分数</th><th>学年</th><th>学期</th></tr>
                   <% while (fenye.dr!=null && fenye.dr.Read()) { %>
                   <tr><td><% Response.Write(fenye.dr["Cname"].ToString());%></td><td><% Response.Write(fenye.dr["Score"].ToString());%></td><td><% Response.Write(fenye.dr["Grade"].ToString());%></td><td><% Response.Write(fenye.dr["Term"].ToString());%></td></tr>     
                   <% } %>
                </table>
                <p><% Response.Write(fenye.navigate);%></p>
               
                
                
            </div>
                        
            </div>


        


            <div id="bottom">

            </div>
        </div>
    </form>
</body>
</html>
